<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<input  type="text" id="input1" />
		<input  type="text" id="input2" />
		<input  type="text" id="input3" />
		<button onclick="check2()">判断大小</button>
		
		<script>
			function check()
			{
				var math = input1.value
				var math2 = input2.value
				if(math>math2)
				{
					alert(math)
				}
			
			
	</body>
</html>
